package cn.shop.admin.service;

import cn.shop.base.MyPage;
import cn.shop.transcation.detail.entity.FundDetail;
import cn.shop.transcation.detail.entity.WithdrawDetail;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 交易明细(FundDetail)表服务接口
 *
 * @author jzw
 * @since 2021-12-06 14:22:11
 */
public interface FundDetailService extends IService<FundDetail> {

	Map<String, BigDecimal> statistics(FundDetail fundDetail, LocalDateTime startTime, LocalDateTime endTime);

	Map<String, BigDecimal> statisticsForWithdraw(FundDetail fundDetail, LocalDateTime startTime, LocalDateTime endTime);

	MyPage<WithdrawDetail> queryByPageForWithdraw(MyPage<FundDetail> page, QueryWrapper<FundDetail> query);

}

